<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
	<head>
		<html:base />
		<title>View Illness Records</title>
		<link href="form/login.css" rel="stylesheet" type="text/css">
	</head>
	<body>
		<logic:notPresent name="userid" scope="session">
           	<logic:redirect forward="login_error"></logic:redirect>
		</logic:notPresent>
		<div class="container">
			<div class="header">
				<html:img page="/yssz.jpg"/>
				<div id="login">
					<html:link action="personalInformation">back</html:link>
					<html:link action="mainPre">main page</html:link>
				</div>
			</div>
			<div class="content">
				<h1>View Illness Records</h1>
				<p><html:link page="/form/addIllness.jsp">add</html:link></p>
				<table width="800" border="1" cellspacing="0" cellpadding="0">
					<tr align="center" valign="middle">
						<td>疾病名称</td>
						<td>开始日期</td>
						<td>结束日期</td>
						<td>已就医</td>
						<td>医院名称</td>
						<td>医生姓名</td>
						<td>评价</td>
					</tr>
					<logic:iterate id="recordList" name="illnesses" scope="request">
						<tr align="center" valign="middle">
							<td><bean:write name="recordList" property="groupName"/></td>
							<td><bean:write name="recordList" property="beginDate"/></td>
							<td><bean:write name="recordList" property="endDate"/></td>
							<td><bean:write name="recordList" property="treatment"/></td>
							<td><bean:write name="recordList" property="hospital"/></td>
							<td><bean:write name="recordList" property="doctor"/></td>
							<td><bean:write name="recordList" property="comment"/></td>
						</tr>
					</logic:iterate>
				</table>
			</div>
			<div class="footer">
				<p>copyright@yssz</p>
			</div>
		</div>
	</body>
</html:html>
